import EBuilder from './components/builder/';
import EDesigner from './components/designer/';
import ENode from './components/node/';
import 'ant-design-vue/dist/antd.css';
import {
  pluginManager,
  type PluginManager,
  type PageManager,
  usePageManager,
} from '/@/views/formDesigner/utils';
import { setupComponent } from './extensions';
import './index.less';
export type * from './types/epic-designer.d';
// import { setupAntdV3 } from '../ui/antd';
// setupAntdV3(pluginManager);
// 初始化设计器
setupComponent(pluginManager);
import { setupCloud } from '../ui/cloud';
setupCloud(pluginManager);
// const components = [EBuilder, EDesigner]

// 注册全局组件
// const EDesignr = {
//   install (app: App) {
//     components.forEach((comp) => {
//       app.component(comp.__name ?? '', comp)
//     })
//   },
//   pluginManager,
//   usePageManager
// }

export {
  EBuilder,
  EDesigner,
  ENode,
  pluginManager,
  usePageManager,
  type PluginManager,
  type PageManager,
};
// export default EDesignr
